<div class="uk-layui-form">
	<form class="layui-form" action="/admin/weixin/save.html" method="post">
		<input type="hidden" name="snsid" value="${snsid!''}">
		<div class="layui-collapse">
			<div class="layui-colla-item">
				<h2 class="layui-colla-title">公众号信息</h2>
				<div class="layui-colla-content layui-show">
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">公众号名称：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="name" required lay-verify="required" autocomplete="off"
									class="layui-input">
							</div>
							<font color="red">*</font> 
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">AppID(应用ID)：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="appkey" required lay-verify="required" autocomplete="off"
									class="layui-input">
							</div>
							<font color="red">*</font> 
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">AppSecret(应用密钥)：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="secret" required lay-verify="required"  autocomplete="off"
									class="layui-input">
							</div>
							<font color="red">*</font> 
						</div>
					</div>
					<div class="layui-form-item">
						<label class="layui-form-label" style="width:200px;">公众号类型：</label>
						<div class="layui-input-block">
							<input type="radio" name="account" value="sub" title="服务号" checked> 
							<input type="radio" name="account" value="sev" title="订阅号" >
						</div>
					</div>
				</div>
			</div>
			<div class="layui-colla-item">
				<h2 class="layui-colla-title">配置信息</h2>
				<div class="layui-colla-content layui-show">
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">URL(回调地址)：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="url"  readOnly="readOnly" value="${schema!''}://${hostname!''}/im/weixin/${snsid!''}" autocomplete="off"
									class="layui-input">
								
							</div>
							<div class="layui-inline">
								<div class="layui-input-inline" style="width:240px;color:red;padding-top:8px;">
									请复制此URL填写到微信公众平台
								</div>
						</div>
						</div>
					</div>
					
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">Token(令牌)：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="token"  required lay-verify="required" value="UCKeFuToken" autocomplete="off"
									class="layui-input">
							</div>
							<font color="red">*</font> 
						</div>
					</div>
					
					<div class="layui-form-item">
						<div class="layui-inline">
							<label class="layui-form-label" style="width:200px;">EncodingAESKey：</label>
							<div class="layui-input-inline" style="width:400px;">
								<input type="text" name="aeskey" required lay-verify="required"  autocomplete="off" class="layui-input" oninput="$('#aeskeynum').text($(this).val().length);">
							</div>
							<font color="red">*</font> 
						</div>
						<div class="layui-inline">
							<div class="layui-input-inline" id="aeskeynum">0</div>
						</div>
					</div>
					<div class="ukefu-imp-tips" style="margin-top:0px;">
			                                             公众号信息请从“微信公平台”获取后填写，Token信息请复制填写到“微信公众平台”中，EncodingAESKey请从微信公众平台随机生成
			        </div>
				</div>
			</div>
		</div>

		<div class="layui-form-button">
			<div class="layui-button-block">
				<button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</div>
<script>
	layui.use('form', function() {
		var form = layui.form;
		form.render(); //更新全部
	});
	layui.use('element', function(){
		var element = layui.element;
	});
</script>